#include "tMere.h"

void tSimulation()
{
	etatImprimante = 1;
	presCart = 1;
	presPal = 1;
	
	while(1)
	{
		int8_t buf;
		
		//piece = rand()%2;
		piece = 1;
		CapteurDim();
		taskDelay(5);
		
		do
		{
			taskDelay(1);
			semTake(semClapet,WAIT_FOREVER);
			buf = clapet;
			semGive(semClapet);
		} while( buf != 0 );
	}
}
